package com.bristua.barcode.supplier.controller;

import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.supplier.biz.QueryChannelBiz;
import com.bristua.barcode.supplier.model.condition.QueryChannelParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/9/5.
 */
@RestController
public class QueryChannelController {

    @Autowired
    private QueryChannelBiz queryChannelBiz;

    @PostMapping(value = "/channel/query")
    public Result querySupplier(@RequestBody QueryChannelParams queryChannelParams){
        return HandleResultUtil.querySuccessResult(queryChannelBiz.queryChannel(queryChannelParams));
    }
}
